package com.hrs.enity.db;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.hrs.common.enums.OrderStatus;
import lombok.Data;

/**
 * 发放单
 * @TableName t_pay_order
 */
@TableName(value ="t_pay_order")
@Data
public class PayOrder implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 月份
     */
    private Date month;

    /**
     * 0待登记 1待复核 2正常 3已发放
     */
    private OrderStatus status;

    /**
     * 登记人
     */
    private Long registerId;

    /**
     * 登记时间
     */
    private LocalDateTime registerTime;

    /**
     * 复核人
     */
    private Long reviewId;

    /**
     * 复核时间
     */
    private LocalDateTime reviewTime;

    private Integer departmentId;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}